import { createSlice } from '@reduxjs/toolkit'

const userOtherInfo = createSlice({
    name: 'userOtherInfo',
    initialState: {
      userOtherInfo: {
        avatar: '',
        profile: ''
      },
    },
    reducers: {
        setUserOtherInfo (state, action) {
            state.userOtherInfo = action.payload
        }
    }
})

const {setUserOtherInfo} = userOtherInfo.actions
// 获取reducer函数
const userOtherInfoReducer = userOtherInfo.reducer

export {setUserOtherInfo}

export default userOtherInfoReducer